Kanzi 3.9.10
ResourceManager.ResourceUsage Class Reference

Public Member Functions

long getMemoryUsageCpu ()
 Calculates the estimate for the total amount of bytes of CPU memory that the resources use.
 
long getMemoryUsageGpu ()
 Calculates the estimate for the total amount of bytes of GPU memory that the resources use.
 
int getResourceCount ()
 Returns the total number of resources.
 

Member Function Documentation

◆ getMemoryUsageCpu()

long getMemoryUsageCpu ( )

Calculates the estimate for the total amount of bytes of CPU memory that the resources use.

Returns
The estimate for the total amount of bytes of CPU memory that the resources use. If the number of bytes does not fit in long, -1.
Since
Kanzi 3.9.10

◆ getMemoryUsageGpu()

long getMemoryUsageGpu ( )

Calculates the estimate for the total amount of bytes of GPU memory that the resources use.

Returns
The estimate for the total amount of bytes of GPU memory that the resources use. If the number of bytes does not fit in long, -1.
Since
Kanzi 3.9.10

◆ getResourceCount()

int getResourceCount ( )

Returns the total number of resources.

Returns
The total number of resources. If the number of resource does not fit in int, -1.
Since
Kanzi 3.9.10